from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter("log")

for i in range(100):
    writer.add_scalar("y=x",i,i)
    writer.add_scalar("y=3*x",3*i,i)
writer.close()

